# 453 简单：最小操作次数使数组元素相等

def minMoves(nums):
    minm = min(nums)
    ret = 0
    for num in nums:
        ret += num - minm

    return ret
